﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace HOOMT
{
    class ExternalInterfaceIn : ObjectDiagram
    {
        public ExternalInterfaceIn(Point point, int width, int height, string id)
            : base(point,width,height)
        {

        }

        public override void Drawing(Graphics graphics, OriginalModelForm m)
        {
            
            int distance = 5;
            graphics.DrawEllipse(pen, new Rectangle(upLeftpoint.X, upLeftpoint.Y, width, height));
            graphics.DrawEllipse(pen, new Rectangle(upLeftpoint.X + distance, upLeftpoint.Y + distance, width - 2 * distance, height - 2 * distance));
            graphics.FillEllipse(new SolidBrush(Color.Black), new Rectangle(upLeftpoint.X + distance, upLeftpoint.Y + distance, width - 2 * distance, height - 2 * distance));
            graphics.DrawString(this.name,drawFont,drawBrush, new Point(upLeftpoint.X, upLeftpoint.Y+height));
        }
    }
}
